package hd.day924;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Words {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入作业名称：");
        String parent = sc.next();
        String child = "\\w+\\.(zip|rar)";

        boolean matches = parent.matches(child);

        System.out.println(matches?"合适":"不合适");
    }
}
